package com.jic.member.api.rest;

import com.jic.common.base.vo.RestResult;
import com.jic.member.request.CommissionInfoResquest;
import com.jic.member.request.DistributorShareRequest;
import com.jic.member.request.MeinformationRequest;
import com.jic.member.response.DistributorShareResponse;
import com.jic.member.response.MemberDistributorResponse;
import com.jic.member.response.MemberStatus;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 *
 * @date: 2020-01-09
 * @remark: 会员管理的服务接口
 *
 * feignClient  使用方法:
 *
 * 1.服务提供者编写 FeignClient 属性 name对应注册中心服务Id path为统一前缀  url可以直接指定调用地址（调试用）
 * 2.客户端需要在启动类上加上@EnableFeignClients注解
 * 3.如果通过feignClient调用超时，请设置
 * ribbon:
 *   ReadTimeout: 3000
 *   ConnectTimeout: 3000
 * 4.客户端依赖该jic-feign-common,在调用处@Resource注解注入 即可调用
 */
@FeignClient(name = "jic-member",path = "/distributor")
public interface MemberDistributorApi {

    @ApiOperation("佣金明细保存")
    @PostMapping("/saveCommission")
     Boolean saveCommission(@RequestBody CommissionInfoResquest request);

}
